<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div id="content">
    <section class="content-header">
        <h1>
            <i class="fa fa-file-image-o"></i> <strong>价格本管理</strong>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-home "></i>Home</a></li>
            <li>价格本管理</li>
            <li class="active">价格本信息</li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="box box-info">
            <div class="box-body">
            <div class="box-header with-border">
                <i class="fa fa-th-list"></i>
                <h4 class="box-title">单泵</h4>
            </div>
                <div class="form-inline">
                    <div class="input-group">
                        <input type="text" id="keyword" class="form-control" placeholder="search..."/>
                         <span class="input-group-btn">
	                        <button th:if="${module.canRead==true}" type="button" class="btn btn-info searchBtn">查询</button>
	                        <button th:if="${module.canRead==true}" type="button" name="reset" id="reset-btn" class="btn btn-info resetBtn">撤消</button>
                    	</span>
                    </div>
                    <div class="form-group pull-right">
                        <button th:if="${module.canModify==true}" type="button" class="btn btn-info editBtn">编辑价格</button>
                        <button th:if="${module.canAdd==true}" type="button" class="btn btn-info  btnImport">导入价格</button>
                    </div>
                </div>
                </div>
            <div class="tab-content">
            <div class="box box-body">
                <table width="100%" class="mytable dataTable table-bordered text-center table-striped table-hover" id="pumpTable">
                    <thead>
                    <tr>
                        <th width="5%">序号</th>
                        <th width="2%"><input type="checkbox" id="checkAllPump"/></th>
                        <th width="39%">设备型号</th>
                        <th width="39%">设备名称</th>
                        <th width="6%">所属部门</th>
                        <th width="7%">价格（元）</th>
                    </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
                </div>
                </div>
        </div>
    </section>
    <!--单泵录入弹窗-->
    <div class="modal" id="pumpModal">
        <div class="modal-dialog" role="dialog">
            <form id="pumpEditForm">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title"><strong>主机价格录入</strong></h4>
                    </div>

                    <div class="modal-body">
                        <input type="hidden" name="id" id="id" />
                        <input type="hidden" name="deviceId" id="deviceId" />
                        <input type="hidden" name="createTime" id="createTime" />
                        <input type="hidden" name="superior" id="superior" th:value="${superior}"/>
                        <div class="form-horizontal">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">设备型式</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control"  type="text" name="deviceModel"  id="deviceModel"  readonly="readonly"  />
                                    </div>
                                    
                                </div>
                                <label class="col-sm-2 control-label">设备型号</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control"  type="text" name="deviceType"  id="deviceType" readonly="readonly"  />
                                    </div>
                                    
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">价格(元)</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control" type="text" name="price" id="price" datatype="*,n" />
                                    </div>
                                    <div class="col-md-1">
			                          <span style="color:#F00">*</span>
			                        </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary saveBtn" >保存</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>

                    </div>
                </div>
            </form>
        </div>
    </div>
    <script th:src="@{/priceBook/singlePump/singlePumpIndex.js}"></script>
    </div>
</body>
</html>